﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using Acceso_Datos;
using System.Data;
namespace Negocio
{

    public class cnDB
    {
        //   private BDClinicaEntities ContextoDeObjs = new BDClinicaEntities();
  
        public clsConexionBD cnStr =new clsConexionBD();
        private  System.Data.SqlClient.SqlConnection cn= new System.Data.SqlClient.SqlConnection();    
        public void ConexBD(System.Data.SqlClient.SqlConnection cn)    
             {
                 if(cn.State==ConnectionState.Open)
                 {
                     cn.Close();
                 }

                 cn.ConnectionString = cnStr.CadenaConexion();
            
             }
            
          
       
   
    }
}
